<template>
  <bm-info-window
    :position="position"
    :title="name"
    :show="infoWindow.show"
    @close="infoWindowClose"
    @open="infoWindowOpen"
  >
    <!-- <p v-text="infoWindow.contents"></p> -->
    <button @click="clear">查看详情</button>
  </bm-info-window>
</template>

<script>
export default {
props:['position','name'],
  data() {
    return {
      infoWindow: {
        show: true,
        // contents: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
      }
    };
  },
  methods: {
    infoWindowClose(e) {
      this.infoWindow.show = false;
    },
    infoWindowOpen(e) {
      this.infoWindow.show = true;
    },
    clear() {
       
    }
  }
};
</script>